package org.jctc.els.modules.biz.mapper.proTemplate;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.jctc.els.modules.biz.entity.proTemplate.ProjectReviewTemplate;

import java.util.List;


/**
 * 评审模板表;(els_project_review_template)表数据库访问层
 * @author : http://www.chiner.pro
 * @date : 2022-6-21
 */
@Mapper
public interface ProjectReviewTemplateMapper  extends BaseMapper<ProjectReviewTemplate>{
    /**
     * 分页查询指定行数据
     *
     * @param page 分页参数
     * @param wrapper 动态查询条件
     * @return 分页对象列表
     */
    IPage<ProjectReviewTemplate> selectByPage(IPage<ProjectReviewTemplate> page , @Param(Constants.WRAPPER) Wrapper<ProjectReviewTemplate> wrapper);

    Page<ProjectReviewTemplate> selectPageList(@Param("pagin") Page<ProjectReviewTemplate> pagin, @Param("name") String name);

    List<ProjectReviewTemplate> selectLists();
}